<template>
  <!-- 轮播图 -->
  <div class="banner">
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item in banner" :key="item.id">
      
        <img :src="'http://218.7.112.123:10001/' + item.advImg">
      </van-swipe-item>
      
    </van-swipe>
  </div>
  
</template>

<script>
export default {
  props: ["banner"],
};
</script>

<style>
img {
  width: 100%;
  height: auto;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  /* line-height: 150px; */
  height: 211px;
  text-align: center;
  background-color: #39a9ed;
}
</style>